<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'sanpham-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array('enctype'=>'multipart/form-data')
)); ?>

	<div style="width: 70%; padding-right:10px; border-right: 1px solid #ccc; float: left;">
	
		<div class="row">
			<label>Tên sản phẩm</label>
			<?php echo $form->textField($model,'TenSanPham',array('size'=>80,'maxlength'=>200,'class'=>'text-input small-input')); ?>
			<?php echo $form->error($model,'TenSanPham', array('class'=>'input-notification error png_bg')); ?>
		</div><br />
		
		<div class="row">
			<label>Đơn giá</label>
			<?php echo $form->textField($model,'DonGia',array('size'=>80,'maxlength'=>20,'class'=>'text-input small-input')); ?>
			<?php echo $form->error($model,'DonGia', array('class'=>'input-notification error png_bg')); ?>
		</div><br />
		
		<div class="row">
			<label>Ảnh đại diện</label>
			<?php echo $form->fileField($model,'path',array('size'=>40,'class'=>'small-input')); ?>
			<?php echo $form->error($model,'AnhDaiDien', array('class'=>'input-notification error png_bg')); ?>
		</div><br />
		
		<div class="row">
			<label>Mô tả</label>
			<?php echo $form->textArea($model,'MoTa',array('rows'=>6, 'cols'=>50, 'class'=>'text-input textarea wysiwyg')); ?>
			<?php echo $form->error($model,'MoTa', array('class'=>'input-notification error png_bg')); ?>
		</div><br /><br />
	
		<div class="row">
			<label>Hiển thị sản phẩm</label>
		   	<?php echo $form->dropDownList($model,'TrangThai',
				array(
					0=>'Không hiển thị',
					1=>'Mặc định',
					2=>'Slide lớn (800 x 328)',
					3=>'Slide bé',
					4=>'Hàng mới về',
					)
				); 
			?>
			<?php echo $form->error($model,'STT', array('class'=>'input-notification error png_bg')); ?>
		</div><br />
		
		<div class="row">
			<label>Thứ tự hiển thị trên slide</label>
		   	<?php echo $form->dropDownList($model,'STT',
				array(
					0=>'0',
					1=>'1',
					2=>'2',
					3=>'3',
					4=>'4',
					5=>'5',
					6=>'6',
					7=>'7',
					8=>'8',
					9=>'9',
					10=>'10',
					11=>'11',
					12=>'12',
					13=>'13',
					14=>'14',
					15=>'15',
					16=>'16',
					17=>'17',
					18=>'18',
					19=>'19',
					20=>'20',
					)
				); 
			?>
			<?php echo $form->error($model,'STT', array('class'=>'input-notification error png_bg')); ?>
		</div><br /><br />
		
		<div class="row">
			<label>Upload nhiều ảnh cho sản phẩm</label>
			<input type="file" class="multi" name="multiPath[]"/>
		</div><br />
	</div>
	
	<!-- RIGHT -->
	<div style="width: 28%; float: right;">
		<div class="row">
			<label>Danh mục sản phẩm</label>
			<div id="list-checkbox">
			<?php echo $form->checkBoxList($model,'checkCate',danhmucsanpham::model()->getListData(),array(
            	'separator'=>'',
            	'template'=>'{input} {label}'
            )); ?>
            </div>
			<?php echo $form->error($model,'checkCate', array('class'=>'input-notification error png_bg')); ?>
		</div><br />
	</div>
	
	
	<div class="clear"></div>
	<br />
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '  Tạo mới  ' : '  Cập nhật  ', array('class'=>'button')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->